var status = -1;

function start() {
    action(1, 0, 0)
}

function start(d, c, b) {
    status++;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.curNodeEventEnd(true);
            qm.eventSKill(0);
            qm.setInGameDirectionMode(true, false, true);
            qm.sendNormalTalk_Bottom("队长！海姿！", 37, 2550007, false, true)
        } else {
            if (status === a++) {
                qm.sendNormalTalk_Bottom("好，要坚持到海姿成功引爆的时候。\r\n桥梁一旦被突破就完了。", 57, 0, true, true)
            } else {
                if (status === a++) {
                    qm.askYesNo_Bottom("(拼死也要守住大桥。)", 57, 0)
                } else {
                    if (status === a++) {
                        qm.sendNormalTalk_Bottom("全力突击！死守桥梁！", 57, 0, false, true)
                    } else {
                        if (status === a++) {
                            qm.inGameDirectionEvent_ForcedFlip10(1, 500);
                            qm.inGameDirectionEvent_AskAnswerTime(500)
                        } else {
                            if (status === a++) {
                                qm.sendNormalTalk_Bottom("队长！！！", 37, 2550007, false, true)
                            } else {
                                if (status === a++) {
                                    qm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 500, 0);
                                    qm.inGameDirectionEvent_AskAnswerTime(500)
                                } else {
                                    if (status === a++) {
                                        qm.eventSKill(0);
                                        qm.setInGameDirectionMode(false, true, false);
                                        qm.playerMessage(5, "请死守桥梁，阻拦一涌而上的敌人。");
                                        qm.npc_LeaveField("oid=22408917");
                                        qm.npc_LeaveField("oid=22408918");
                                        qm.npc_LeaveField("oid=22408919");
                                        qm.dispose();
                                        qm.warp(306050600, 0)
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

function end(d, c, b) {
    status++;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            var e = qm.getQuest();
            qm.askYesNo("这个任务的结束脚本还没有修复哦。它的脚本位于： #b /脚本/任务/#e" + e + "#n.js#k\r\n\r\n如果你有兴趣，欢迎一起来修复！\r\n\r\n那么现在，你要立刻完成这个任务吗？")
        } else {
            if (status == a++) {
                qm.forceCompleteQuest();
                qm.dispose()
            }
        }
    }
};